﻿<Page x:Class="PTCScheduler.FileMenu_Pages.Add_TeacherPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="480" d:DesignWidth="825"
	Title="Add New Teacher">
    <Grid>
        <Grid Style="{StaticResource PageStyle}">

            <Label Content="First Name:" Height="28" HorizontalAlignment="Left" Margin="26,85,0,0" Name="lblStudentFName" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="115,87,0,0" Name="txtTeacherFName" VerticalAlignment="Top" Width="170" MaxLength="20" />

            <Label Content="Last Name:" Height="28" HorizontalAlignment="Left" Margin="24,128,0,0" Name="lblStudentLName" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="115,130,0,0" Name="txtTeacherLName" VerticalAlignment="Top" Width="170" MaxLength="20" />

            <Label Content="Email:" Height="28" HorizontalAlignment="Left" Margin="26,171,0,0" Name="lblEmail" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="115,173,0,0" Name="txtTeacherEmail" VerticalAlignment="Top" Width="170" MaxLength="40" />


            <Button Content="Submit" FontSize="14" Height="40" HorizontalAlignment="Left" Margin="195,215,0,0" Name="btnSubmit" VerticalAlignment="Top" Width="90" Style="{StaticResource ButtonStyle}" Click="btnSubmit_Click" />
            <TextBlock Background="CornflowerBlue" FontFamily="Arial" FontStretch="Normal" FontWeight="Bold" Foreground="White" Height="53" HorizontalAlignment="Left" Margin="0,-2,0,0" Name="textBlock1" Text="Please enter teacher information below and click submit button to add new teacher." TextTrimming="None" TextWrapping="Wrap" VerticalAlignment="Top" Width="306" Style="{StaticResource InstructionsStyle}" />
        </Grid>
        <Grid Margin="306,0,0,0" Background="White">
            <DataGrid Name="dataGridTeacher" Style="{StaticResource DataGridViewStyle}" Margin="6,40,27,28" />
            <Label Content="Updated Record: " Height="28" HorizontalAlignment="Left" Margin="6,9,0,0" Name="lblUpdatedRecord" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" />
            <Label Content="Teacher has been added successfully." Foreground="DarkGreen" Height="28" HorizontalAlignment="Left" Margin="139,9,0,0" Name="lblTeacherSuccess" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
            <Label Content="Please enter a valid email. example@example.com" Height="28" HorizontalAlignment="Left" Margin="20,80,0,0" Name="lblValidEmail" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="Red" Visibility="Hidden" />
            <Label Content="Please ensure all information is provided. " Height="28" HorizontalAlignment="Left" Margin="20,80,0,0" Name="lblProvideAllInfo" VerticalAlignment="Top" Style="{StaticResource LabelStyle}" Foreground="Red" Visibility="Hidden" />
            <Label Content="Teacher already exists." Height="28" HorizontalAlignment="Left" Margin="20,80,0,0" Name="lblTeacherExists" VerticalAlignment="Top" Visibility="Hidden" Style="{StaticResource LabelStyle}" Foreground="Red" />
            <Label Content="Please enter a valid name. " Foreground="Red" Height="28" HorizontalAlignment="Left" Margin="20,80,0,0" Name="lblValidName" Style="{StaticResource LabelStyle}" VerticalAlignment="Top" Visibility="Hidden" />
        </Grid>
    </Grid>
</Page>
